<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title;?></title>
<?php echo $header;?>
</head>
<body>
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td class="table_top_left" width="17" valign="top"></td>
			<td class="table_top_middle" valign="top">
				<table width="100%" height="31" border="0" cellpadding="0"
					cellspacing="0" class="left_topbg" id="table2">
					<tr>
						<td height="31" align="left"><div class="titlebt"><?php echo $page_label;?></div></td>
					</tr>
				</table>
			</td>
			<td class="table_top_right" width="16" valign="top"></td>
		</tr>
		<tr>
			<td class="table_left_side" height="71" valign="middle"></td>
			<td valign="top" bgcolor="#F7F8F9">
				<table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td valign="top">
							<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
								<tr>
									<td class="left_txt"><?php echo $nav_label,$title;?></td>
								</tr>
								<tr>
									<td>
										<!--类别添加开始 --> 
											<form id="f_column" name="f_column" method="post"
												action="<?php echo base_url('column/add_action');?>">
												<table width="100%" border="1" cellpadding="0" class="list" style="border-collapse: collapse" bordercolor="#C0C0C0">
													<tr>
														<th width="100%" height="25" bgcolor="#EEF2FB"><?php echo lang('column_title_add');?></th>
													</tr>
													<tr>
														<td align="center"
															style="height: 12px; padding-left: 5px; padding-right: 5px; padding-top: 2px; padding-bottom: 2px">
								<?php echo lang('column_name');?>&nbsp;
								<input name="columnname" type="text" id="columnname" size="30" maxlength="20" />
								 <?php echo lang('column_belong_to');?>&nbsp;<select name="fatherid" id="fatherid">
																<option value="0" selected="selected"><?php echo lang('column_as_top');?></option>
									<?php echo format_column_as_select($class);?>
								</select>
								&nbsp;<?php echo lang('column_recommend');?>
								<input name="isrecommend" type="radio" 
															value="0" checked="checked" /><?php echo lang('column_recommend_no');?>
								<input type="radio" name="isrecommend" 
															value="1" /><?php echo lang('column_recommend_yes');?>
								<input name="s_column_add" type="submit" class="button"
															id="s_column_add"
															value="<?php echo lang('com_button_submit');?>" /> <span
															class="tip"><?php //echo lang('column_two_level_tip');?></span>
														</td>
													</tr>
												</table>
											</form>
						<!--类别添加结束 --> 
						<!--类别管理开始 -->
						<table id="bs" width="100%" border="1" cellpadding="0" class="list" style="border-collapse: collapse" bordercolor="#C0C0C0">
							<tr>
								<th width="75%" height="25" bgcolor="#EEF2FB" ><?php echo lang('column_title_list');?></th>
								<th width="12%" bgcolor="#EEF2FB" ><?php echo lang('com_list_operation');?></th>
								<th width="13%" bgcolor="#EEF2FB" ><?php echo lang('com_list_check_all');?><input name="chkall" type="checkbox" id="chkall" value="listid[]" /></th>
							</tr>
							<!--循环开始 -->
							<?php
								$column = format_column_as_table($class);
								if (!empty($column)):
									echo $column;
								else :
									echo '<tr><td height="25" colspan="3" >&nbsp;'.lang('com_tip_no_content').'</td></tr>';
								endif;
							?>
							<!--循环结束 -->
							 <tr><td colspan="3" align="right">
							 <span class="tip"><?php echo lang('column_has_sub_class_tip');?></span>
							 <input class="button" name="b_delete" id="b_delete" type="button" value="<?php echo lang('com_button_delete');?>" />
							 <input name="delete_url" type="hidden" id="delete_url" value="<?php echo base_url('column/delete_action');?>" />
							 </td></tr>
						</table>
						<!--类别管理结束 -->
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
			<td class="table_right_side"></td>
		</tr>
		<tr>
			<td valign="middle" class="table_bottom_left">&nbsp;</td>
			<td height="17" valign="top" class="table_bottom_middle">&nbsp;</td>
			<td class="table_bottom_right">&nbsp;</td>
		</tr>
	</table>
</body>

</html>
